package java67_2;

import java.util.Scanner;

public class Aaa {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("输入会员卡卡号");
		int x = input.nextInt();
		int a = x / 1 % 10;
		int b = x / 10 % 10;
		int c = x / 100 % 10;
		int d = x / 1000 % 10;
		int y = a + b + c + d;

		if (y > 20) {
			System.out.println("奖励一台彩电");
		}
		System.out.println("谢谢惠顾");
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
		System.out.println(d);
		System.out.println(y);

	}

}